from string import ascii_letters

ctoi = lambda x: ascii_letters.index(x)
itoc = lambda x: ascii_letters[x]

# with open(r'\ciphertext.txt','r+') as f:
#     cipher = f.read()
# with open(r'\plaintext.txt','r+') as f:
#     plaintext = f.read()
plaintext = "Shewouldntwalkrightnext"
cipher = "nsfAIHFrMuLynuCApeEstxJ"
plain = ''.join(p for p in plaintext if p in ascii_letters)
flag = ""
for i in range(len(cipher)):
    c = cipher[i]
    p = plaintext[i]
    for key in ascii_letters:
        cc = itoc((ctoi(p) + ctoi(key)) % 52)
        if (cc == c):
            flag += key
            break
    print(flag)
# vlbeunuozbpycklsjXlfpaq
